FILE(GLOB GRIDSCHED_DIR "*")

# Searching for schedulers (a sub-directory with a "CMakeLists.txt" file)
SET(SUB_DIRS "")
FOREACH(A_DIR ${GRIDSCHED_DIR})
    IF(EXISTS "${A_DIR}/CMakeLists.txt")

    
    	
		
		
		
    
        FILE(RELATIVE_PATH GRIDSCHEDNAME "${ClusterVirtualisation_SOURCE_DIR}/grid-schedulers" ${A_DIR})
        MESSAGE(STATUS "Adding grid-scheduler: ${GRIDSCHEDNAME}")
        SUBDIRS(${GRIDSCHEDNAME})
    ENDIF(EXISTS "${A_DIR}/CMakeLists.txt")
ENDFOREACH(A_DIR)
